package com.xzst.jacksonxml.model;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @Author:liukexin
 * @DATE:2019-06-19 16:55
 */
@Builder
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@JacksonXmlRootElement(localName = "Method")
public class Method implements Serializable {
    private static final long serialVersionUID = -9220995027432307948L;

    /**
     * 用户信息
     */
    @JacksonXmlProperty(localName = "EndUser")
    private EndUser endUser;

    @JacksonXmlProperty(localName = "Name")
    private String name;

    @JacksonXmlElementWrapper(localName = "Items")
    @JacksonXmlProperty(localName = "Item")
    private List<Item> items;
}
